@echo off
set MS=
for /f %%i in ('type "XXX.txt"') do set MS=%MS%%%i
echo %MS%
pause